package irnode;

import symbol.ClassDecl;
import xyz.SimpleNode;

public class IRThis extends IRNode{
	protected ClassDecl thisDescriptor; //pointer to correspond var symbol
	
	public IRThis(String name, SimpleNode node) {
		super(name, node);
		thisDescriptor = null;
	}

	public IRThis(String name, SimpleNode node, IRNode parent) {
		super(name, node, parent);
		thisDescriptor = null;
	}

	public ClassDecl getThisDescriptor() {
		return thisDescriptor;
	}

	public void setThisDescriptor(ClassDecl thisDescriptor) {
		this.thisDescriptor = thisDescriptor;
	}
}
